home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: somGetGlobalEnvironment()
- Sent: 3/12/96 8:57 AM
- Received: 3/12/96 9:11 AM
- From: lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >At 6:41 AM 3/12/96, Arni McKinley wrote:
- >>What does the Global function
- >>
- >>Environment *ev = somGetGlobalEnvironment()
- >>
- >>really do and wy do we pass 'ev' around to everything in ODF if this call
- >>can get it so easily?
- >
- >That's a good question. Our understanding is that somGetGlobalEnvironment
- >will either break or become relatively expensive when used in a threaded
- >environment. The safe thing to do is to synthesize a new environment on
- >the stack. We've created a new helper object for this purpose
- >(FW_SOMEnvironment), and now use it instead of somGetGlobalEnvironment. I
- >believe we created FW_SOMEnvironment after releasing 1.0d11, so don't
- >expect to find it in your current sources.
- >
- >Jim Lloyd
- >ODF Team
- >
-
- We had another reason to pass around the ev: one day, when we have a
- direct to SOM compiler, we hope to have ODF completly using SOM. That day
- you will have to pass ev around like you have to do it now when directly
- calling OpenDoc. Having the ev now will break less code later.
-
- Henri Lamiraux
- ODF Team
-